package com.liujie.dhunting.controller;


import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.liujie.dhunting.entity.Position;
import com.liujie.dhunting.mapper.PositionMapper;
import com.liujie.dhunting.utils.Result;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.sql.Date;
import java.util.List;

@RequestMapping("/position")
@RestController
public class PositionController {

    @Resource
    PositionMapper positionMapper;

    @GetMapping("/load")
    public Result<?> load(){
        System.out.println("/position/load");
        return Result.success(positionMapper.selectList(Wrappers.emptyWrapper()));
    }




}
